#!/usr/bin/python
# coding=utf-8
"""
数据查询业务层
"""
from mynest.dao.userdao import UserDao


class UserSV:
    def checkUser(self, account, password):
        """
        检测账户密码是否正确
        :param account: 账户
        :param password: 密码
        :return: True/False
        """
        userDao = UserDao()
        user = userDao.load(account, password)
        if not user is None:
            return True
        else:
            return False
